﻿using System.Linq;
using ZBJF.Warranty.Model;
using ZBJF.Warranty.Model.ViewModel.InsuranceWarrantyDealWith;

namespace ZBJF.Warranty.IBLL
{
    public partial interface IStatusReasonService
    {
        /// <summary>
        /// 根据主键ID获取状态原因
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        StatusReason LoadByID(int id);
        /// <summary>
        /// 判断状态原因是否存在
        /// </summary>
        /// <param name="accessoriestName">状态原因描述</param>
        /// <param name="id">工单状态ID</param>
        /// <returns></returns>
        bool IsExist(string reasonDescribe, int id = 0);

        /// <summary>
        /// 分页获取状态原因列表
        /// </summary>
        /// <param name="model">过滤条件</param>
        /// <param name="total">总数量</param>
        /// <returns></returns>
        IQueryable<StatusReason> GetPagingList(StatusReasonModel model, out int total);
    }
}
